package com.xiaoxx.model.entity.chat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xiaoxx.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author :HX
 * @date : 2023/11/29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_chat_model")
@ApiModel(value = "ChatModel对象", description = "")
public class ChatModel extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "0-聊天 1-图片")
    @TableField("content_type")
    private Integer contentType = 0;

    @ApiModelProperty(value = "apikey id")
    private String apikeyId;

    @ApiModelProperty(value = "apiKey")
    @TableField(exist = false)
    private String apiKey;


    @ApiModelProperty(value = "模型")
    @TableField("model")
    private String model;

    @ApiModelProperty(value = "模型描述")
    @TableField("model_desc")
    private String modelDesc;

    @ApiModelProperty(value = "限流规则")
    @TableField("limit_rule")
    private String limitRule;

    @ApiModelProperty(value = "1、使用中 2未使用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "1-启用缓存 2-关闭缓存")
    @TableField("is_cache")
    private Integer isCache;

    @ApiModelProperty(value = "限流数")
    @TableField("limit_num")
    private Integer limitNum;

}
